package com.mall4jcola.cloud.auth.gateway;

import com.mall4jcola.cloud.auth.model.UserAuthEntity;

/**
 * 有关登录账户信息表的查询操作
 * @author hmxchen
 */
public interface UserAuthsQueryGateway {
    /**
     * TODO
     * 查询账号信息
     * @param identityType
     * @param identifier
     * @return
     * @author hmxchen
     * @date 2022/8/2 21:26
     */
    UserAuthEntity getByIdentityTypeAndIdentifier(String identityType, String identifier);
    /**
     * TODO
     * 根据code解析openId
     * @param code
     * @return openId 微信openId
     * @author hmxchen
     * @date 2022/8/21 20:00
     */
    String getWxOpenIdByCode(String code);
}
